In most cases, your application should not set the default keychain. If you need to, call the function KCSetDefaultKeychain. If specify a locked keychain, the Unlock Keychain dialog box will be displayed to prompt the user to unlock it. You can call the function KCGetDefaultKeychain to obtain a reference to the default keychain. Your application might want to call KCGetDefaultKeychain to obtain the name and location of the default keychain. You would call the function KCGetKeychainName to determine the keychain name.